<?php
/*
# ------------------------------------------------------------------------
# JD Base Theme
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/
global $t3_user_login, $user;
if ($t3_user_login) {
	echo $t3_user_login;
} else {
?>
<div class="ja-welcomemsg">
	<span><?php echo t('Hello').' '.$user->name ?></span>
	<a href="?q=logout" class="form-submit" title="<?php echo t('Logout')?>"><span><?php echo t('Logout')?></span></a>
</div>
<?php	
}